package com.zhuiYun.project.api.trend.mapper;

import com.zhuiYun.project.api.trend.entity.TrendThumb;
import com.zhuiYun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TrendsThumbMapper extends BaseMapper<TrendThumb> {

    @Update("update trend_content set likes = likes - 1 where id=#{id}")
    // 点赞取消时，点赞减一
    void updateLikeById(Integer id);
}
